<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PU2CLR Si4735 Arduino Library: Audio setup</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="logo_si4735.png"/></td>
  <td id="projectalign">
   <div id="projectname">PU2CLR Si4735 Arduino Library<span id="projectnumber">&#160;2.1.4</span>
   </div>
   <div id="projectbrief">Arduino Library for Si47XX Devices - By Ricardo Lima Caratti</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('group__group13.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">Audio setup</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga430b86ccfd4d6c89da9202a538e0cfc9"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga430b86ccfd4d6c89da9202a538e0cfc9">SI4735::getCurrentVolume</a> ()</td></tr>
<tr class="memdesc:ga430b86ccfd4d6c89da9202a538e0cfc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Current Volume.  <br /></td></tr>
<tr class="separator:ga430b86ccfd4d6c89da9202a538e0cfc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae0e23a0a2cbc24ee16b03866ee587102"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#gae0e23a0a2cbc24ee16b03866ee587102">SI4735::setVolumeUp</a> ()</td></tr>
<tr class="memdesc:gae0e23a0a2cbc24ee16b03866ee587102"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Volume Up.  <br /></td></tr>
<tr class="separator:gae0e23a0a2cbc24ee16b03866ee587102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga11be65552224d4ad3e41d83a5ff1172b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga11be65552224d4ad3e41d83a5ff1172b">SI4735::setVolumeDown</a> ()</td></tr>
<tr class="memdesc:ga11be65552224d4ad3e41d83a5ff1172b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Volume Down.  <br /></td></tr>
<tr class="separator:ga11be65552224d4ad3e41d83a5ff1172b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6a538cefcb4beb5bd77a721f8dab019"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#gac6a538cefcb4beb5bd77a721f8dab019">SI4735::setAudioMode</a> (uint8_t audioMode)</td></tr>
<tr class="memdesc:gac6a538cefcb4beb5bd77a721f8dab019"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the Audio Mode. See table below.  <br /></td></tr>
<tr class="separator:gac6a538cefcb4beb5bd77a721f8dab019"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63302217aaa006f6683dacd410b48e40"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga63302217aaa006f6683dacd410b48e40">SI4735::setAmDelayNB</a> (uint16_t value)</td></tr>
<tr class="memdesc:ga63302217aaa006f6683dacd410b48e40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the delay before applying impulse blanking.  <br /></td></tr>
<tr class="separator:ga63302217aaa006f6683dacd410b48e40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaea652d358b4b586b6d5964ceb8eb7c81"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#gaea652d358b4b586b6d5964ceb8eb7c81">SI4735::digitalOutputFormat</a> (uint8_t OSIZE, uint8_t OMONO, uint8_t OMODE, uint8_t OFALL)</td></tr>
<tr class="memdesc:gaea652d358b4b586b6d5964ceb8eb7c81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the digital audio output format.  <br /></td></tr>
<tr class="separator:gaea652d358b4b586b6d5964ceb8eb7c81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1a404ca11fb32b457be2d7cfe484dd03"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga1a404ca11fb32b457be2d7cfe484dd03">SI4735::digitalOutputSampleRate</a> (uint16_t DOSR)</td></tr>
<tr class="memdesc:ga1a404ca11fb32b457be2d7cfe484dd03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables digital audio output and configures digital audio output sample rate in samples per second (sps).  <br /></td></tr>
<tr class="separator:ga1a404ca11fb32b457be2d7cfe484dd03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3b7543657dfd36da962267bb8692b796"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga3b7543657dfd36da962267bb8692b796">SI4735::setVolume</a> (uint8_t <a class="el" href="class_s_i4735.html#aa5220772c468fcfb69b5d16163de73fc">volume</a>)</td></tr>
<tr class="memdesc:ga3b7543657dfd36da962267bb8692b796"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets volume level (0 to 63)  <br /></td></tr>
<tr class="separator:ga3b7543657dfd36da962267bb8692b796"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga12d4e173d096b1568e4209a63534d4f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga12d4e173d096b1568e4209a63534d4f6">SI4735::setAudioMute</a> (bool off)</td></tr>
<tr class="memdesc:ga12d4e173d096b1568e4209a63534d4f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the audio on or off.  <br /></td></tr>
<tr class="separator:ga12d4e173d096b1568e4209a63534d4f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacf79be50a01fe91abd498e5d42d83317"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#gacf79be50a01fe91abd498e5d42d83317">SI4735::getVolume</a> ()</td></tr>
<tr class="memdesc:gacf79be50a01fe91abd498e5d42d83317"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current volume level.  <br /></td></tr>
<tr class="separator:gacf79be50a01fe91abd498e5d42d83317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5e3e8cf04ca99c6be2dbe15d72b4efa3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga5e3e8cf04ca99c6be2dbe15d72b4efa3">SI4735::volumeUp</a> ()</td></tr>
<tr class="memdesc:ga5e3e8cf04ca99c6be2dbe15d72b4efa3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set sound volume level Up.  <br /></td></tr>
<tr class="separator:ga5e3e8cf04ca99c6be2dbe15d72b4efa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga23d49ab35895b76e0898405fac086c09"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group13.html#ga23d49ab35895b76e0898405fac086c09">SI4735::volumeDown</a> ()</td></tr>
<tr class="memdesc:ga23d49ab35895b76e0898405fac086c09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set sound volume level Down.  <br /></td></tr>
<tr class="separator:ga23d49ab35895b76e0898405fac086c09"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga430b86ccfd4d6c89da9202a538e0cfc9" name="ga430b86ccfd4d6c89da9202a538e0cfc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga430b86ccfd4d6c89da9202a538e0cfc9">&#9670;&#160;</a></span>getCurrentVolume()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t SI4735::getCurrentVolume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the Current Volume. </p>
<p>Returns the current volume level. </p><dl class="section return"><dt>Returns</dt><dd>uint8_t </dd></dl>

</div>
</div>
<a id="gae0e23a0a2cbc24ee16b03866ee587102" name="gae0e23a0a2cbc24ee16b03866ee587102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae0e23a0a2cbc24ee16b03866ee587102">&#9670;&#160;</a></span>setVolumeUp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::setVolumeUp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the Volume Up. </p>
<p>Same <a class="el" href="group__group13.html#ga5e3e8cf04ca99c6be2dbe15d72b4efa3" title="Set sound volume level Up.">volumeUp()</a> </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__group13.html#ga5e3e8cf04ca99c6be2dbe15d72b4efa3" title="Set sound volume level Up.">volumeUp</a> </dd></dl>

<p class="reference">References <a class="el" href="group__group13.html#ga5e3e8cf04ca99c6be2dbe15d72b4efa3">SI4735::volumeUp()</a>.</p>

</div>
</div>
<a id="ga11be65552224d4ad3e41d83a5ff1172b" name="ga11be65552224d4ad3e41d83a5ff1172b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga11be65552224d4ad3e41d83a5ff1172b">&#9670;&#160;</a></span>setVolumeDown()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::setVolumeDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the Volume Down. </p>
<p>Same <a class="el" href="group__group13.html#ga23d49ab35895b76e0898405fac086c09" title="Set sound volume level Down.">volumeDown()</a> </p><dl class="section return"><dt>Returns</dt><dd>voi </dd></dl>

<p class="reference">References <a class="el" href="group__group13.html#ga23d49ab35895b76e0898405fac086c09">SI4735::volumeDown()</a>.</p>

</div>
</div>
<a id="gac6a538cefcb4beb5bd77a721f8dab019" name="gac6a538cefcb4beb5bd77a721f8dab019"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac6a538cefcb4beb5bd77a721f8dab019">&#9670;&#160;</a></span>setAudioMode()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::setAudioMode </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>audioMode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the Audio Mode. See table below. </p>
<p>If you want to change the audio mode, call this function before call <a class="el" href="group__group08.html#ga753390952a1f2c2a98343979f1f3daa0" title="Sets the radio to AM function. It means: LW MW and SW.">setAM()</a>, <a class="el" href="group__group08.html#gacd89e7b8adefcbc4e89f802acb915906" title="Sets the radio to FM function.">setFM()</a> or <a class="el" href="group__group17.html#ga7c48f2af416b1f89dbedbfbe9a637620">setSSB()</a>.</p>
<p>Sets the Si47XX device to use ANALOG or DIGITAL audio output. The table below shows the valid values.</p>
<p>This function will only take effect after calling <a class="el" href="group__group08.html#ga753390952a1f2c2a98343979f1f3daa0" title="Sets the radio to AM function. It means: LW MW and SW.">setAM()</a>, <a class="el" href="group__group08.html#gacd89e7b8adefcbc4e89f802acb915906" title="Sets the radio to FM function.">setFM()</a> or <a class="el" href="group__group17.html#ga7c48f2af416b1f89dbedbfbe9a637620">setSSB()</a>.</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadNone">Macro   </th><th class="markdownTableHeadNone">Value (Binary)   </th><th class="markdownTableHeadNone">Description    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone">SI473X_ANALOG_AUDIO   </td><td class="markdownTableBodyNone">0b00000101   </td><td class="markdownTableBodyNone">Analog Audio Inputs    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone">SI473X_DIGITAL_AUDIO1   </td><td class="markdownTableBodyNone">0b00001011   </td><td class="markdownTableBodyNone">Digital audio output (DCLK, LOUT/DFS, ROUT/DIO)    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone">SI473X_DIGITAL_AUDIO2   </td><td class="markdownTableBodyNone">0b10110000   </td><td class="markdownTableBodyNone">Digital audio outputs (DCLK, DFS, DIO)    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone">SI473X_DIGITAL_AUDIO3   </td><td class="markdownTableBodyNone">0b10110101   </td><td class="markdownTableBodyNone">Analog and digital audio outputs (LOUT/ROUT and DCLK, DFS,DIO)   </td></tr>
</table>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__group08.html#ga753390952a1f2c2a98343979f1f3daa0" title="Sets the radio to AM function. It means: LW MW and SW.">setAM()</a>, <a class="el" href="group__group08.html#gacd89e7b8adefcbc4e89f802acb915906" title="Sets the radio to FM function.">setFM()</a>, <a class="el" href="group__group17.html#ga7c48f2af416b1f89dbedbfbe9a637620">setSSB()</a>. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">audioMode</td><td>One of the values options above </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga63302217aaa006f6683dacd410b48e40" name="ga63302217aaa006f6683dacd410b48e40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga63302217aaa006f6683dacd410b48e40">&#9670;&#160;</a></span>setAmDelayNB()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::setAmDelayNB </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the delay before applying impulse blanking. </p>
<p>Delay in micro-seconds before applying impulse blanking to the original samples. Default value is 172.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>Delay in micro-seconds </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaea652d358b4b586b6d5964ceb8eb7c81" name="gaea652d358b4b586b6d5964ceb8eb7c81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaea652d358b4b586b6d5964ceb8eb7c81">&#9670;&#160;</a></span>digitalOutputFormat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::digitalOutputFormat </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>OSIZE</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>OMONO</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>OMODE</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>OFALL</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the digital audio output format. </p>
<p>Options: DCLK edge, data format, force mono, and sample precision.</p>
<p>ATTENTION: The document AN383; "Si47XX ANTENNA, SCHEMATIC, LAYOUT, AND DESIGN GUIDELINES"; rev 0.8; page 6; there is the following note: Crystal and digital audio mode cannot be used at the same time. Populate R1 and remove C10, C11, and X1 when using digital audio.</p>
<dl class="section see"><dt>See also</dt><dd>Si47XX PROGRAMINGGUIDE; AN332 (REV 1.0); page 195. </dd>
<dd>
Si47XX ANTENNA, SCHEMATIC, LAYOUT, AND DESIGN GUIDELINES"; AN383; rev 0.8; page 6;</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uint8_t</td><td>OSIZE Dgital Output Audio Sample Precision (0=16 bits, 1=20 bits, 2=24 bits, 3=8bits). </td></tr>
    <tr><td class="paramname">uint8_t</td><td>OMONO Digital Output Mono Mode (0=Use mono/stereo blend ). </td></tr>
    <tr><td class="paramname">uint8_t</td><td>OMODE Digital Output Mode (0=I2S, 6 = Left-justified, 8 = MSB at second DCLK after DFS pulse, 12 = MSB at first DCLK after DFS pulse). </td></tr>
    <tr><td class="paramname">uint8_t</td><td>OFALL Digital Output DCLK Edge (0 = use DCLK rising edge, 1 = use DCLK falling edge) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1a404ca11fb32b457be2d7cfe484dd03" name="ga1a404ca11fb32b457be2d7cfe484dd03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1a404ca11fb32b457be2d7cfe484dd03">&#9670;&#160;</a></span>digitalOutputSampleRate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::digitalOutputSampleRate </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>DOSR</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables digital audio output and configures digital audio output sample rate in samples per second (sps). </p>
<p>When DOSR[15:0] is 0, digital audio output is disabled. The over-sampling rate must be set in order to</p>
<p>satisfy a minimum DCLK of 1 MHz. To enable digital audio output, program DOSR[15:0] with the sample rate</p>
<p>in samples per second. The system controller must establish DCLK and DFS prior to enabling the digital</p>
<p>audio output else the device will not respond and will require reset. The sample rate must be set to 0</p>
<p>before the DCLK/DFS is removed. FM_TUNE_FREQ command must be sent after the POWER_UP command to start</p>
<p>the internal clocking before setting this property.</p>
<p>ATTENTION: The document AN383; "Si47XX ANTENNA, SCHEMATIC, LAYOUT, AND DESIGN GUIDELINES"; rev 0.8; page 6; there is the following note: Crystal and digital audio mode cannot be used at the same time. Populate R1 and remove C10, C11, and X1 when using digital audio.</p>
<dl class="section see"><dt>See also</dt><dd>Si47XX PROGRAMINGGUIDE; AN332 (REV 1.0); page 196. </dd>
<dd>
Si47XX ANTENNA, SCHEMATIC, LAYOUT, AND DESIGN GUIDELINES; AN383; rev 0.8; page 6</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uint16_t</td><td>DOSR Digital Output Sample Rate(32–48 ksps .0 to disable digital audio output). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga3b7543657dfd36da962267bb8692b796" name="ga3b7543657dfd36da962267bb8692b796"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3b7543657dfd36da962267bb8692b796">&#9670;&#160;</a></span>setVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::setVolume </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>volume</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets volume level (0 to 63) </p>
<dl class="section see"><dt>See also</dt><dd>Si47XX PROGRAMMING GUIDE; AN332 (REV 1.0); pages 62, 123, 170, 173 and 204</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uint8_t</td><td>volume (domain: 0 - 63) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga12d4e173d096b1568e4209a63534d4f6" name="ga12d4e173d096b1568e4209a63534d4f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga12d4e173d096b1568e4209a63534d4f6">&#9670;&#160;</a></span>setAudioMute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::setAudioMute </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>off</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the audio on or off. </p>
<p>Useful to mute the audio output of the SI47XX device. This function does not work to reduce the pop in the speaker at start the system up.</p>
<p>If you want to remove the loud click or pop in the speaker at start, power down and power up commands, use setHardwareAudioMute with a external mute circuit.</p>
<dl class="section see"><dt>See also</dt><dd>See Si47XX PROGRAMMING GUIDE; AN332 (REV 1.0); pages 62, 123, 171 </dd>
<dd>
<a class="el" href="group__group18.html#ga54a3a0f412aa6318df0046d478bd134f" title="Sets the Hardware Audio Mute.">setHardwareAudioMute</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>if true, mute the audio; if false unmute the audio. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gacf79be50a01fe91abd498e5d42d83317" name="gacf79be50a01fe91abd498e5d42d83317"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacf79be50a01fe91abd498e5d42d83317">&#9670;&#160;</a></span>getVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t SI4735::getVolume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current volume level. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__group13.html#ga3b7543657dfd36da962267bb8692b796" title="Sets volume level (0 to 63)">setVolume()</a></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>volume (domain: 0 - 63) </dd></dl>

</div>
</div>
<a id="ga5e3e8cf04ca99c6be2dbe15d72b4efa3" name="ga5e3e8cf04ca99c6be2dbe15d72b4efa3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5e3e8cf04ca99c6be2dbe15d72b4efa3">&#9670;&#160;</a></span>volumeUp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::volumeUp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set sound volume level Up. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__group13.html#ga3b7543657dfd36da962267bb8692b796" title="Sets volume level (0 to 63)">setVolume()</a> </dd></dl>

<p class="reference">Referenced by <a class="el" href="group__group13.html#gae0e23a0a2cbc24ee16b03866ee587102">SI4735::setVolumeUp()</a>.</p>

</div>
</div>
<a id="ga23d49ab35895b76e0898405fac086c09" name="ga23d49ab35895b76e0898405fac086c09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga23d49ab35895b76e0898405fac086c09">&#9670;&#160;</a></span>volumeDown()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SI4735::volumeDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set sound volume level Down. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__group13.html#ga3b7543657dfd36da962267bb8692b796" title="Sets volume level (0 to 63)">setVolume()</a> </dd></dl>

<p class="reference">Referenced by <a class="el" href="group__group13.html#ga11be65552224d4ad3e41d83a5ff1172b">SI4735::setVolumeDown()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
